/******************************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Ltd.                       */
/*                                                                            */
/*  NAME      = tonglinkq_comm                                                */
/*  NOTE      =                                                               */
/*  DATE      = 2015/07/15 by wuwk                                            */
/******************************************************************************/
#ifndef _TONGLINKQ_COMM_H_
#define _TONGLINKQ_COMM_H_

void tonglinkq_frlist_copy(Frlist_header *p_lst_source, Frlist_header *p_lst_dest);
int tonglinkq_body_l7data_copy(Frreport_body_data *p_st_src
                             , Frreport_body_data **pp_st_dst);
Frreport_body_data *tonglinkq_get_req_node(L7session_tonglinkq_private *p_st_private
                                         , unsigned long *p_ul_seq
                                         , int *p_i_responserequired
                                         , L4_transaction *p_st_l4_trans
                                         , char **pp_title);
int tonglinkq_add_frlist_string(Frreport_body_data *p_st_body_data, char *p_name, char *p_data, int i_req_resp);
int tonglinkq_add_frlist_int(Frreport_body_data *p_st_body_data, char *p_name, int i_value, int i_req_resp);
int tonglinkq_get_short(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, int i_index);
int tonglinkq_get_long(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, int i_index);
int tonglinkq_get_int(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, int i_index);
int tonglinkq_get_float(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, int i_index);
int tonglinkq_get_double(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, int i_index);
int tonglinkq_get_char(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, int i_index);
int tonglinkq_get_string(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, int i_index);
int tonglinkq_get_carray(Frreport_body_data *p_st_body_data, Frbyte_Packet *p_st_data, int i_index);
int tonglinkq_get_map_boolean(Frreport_body_data *p_st_body_data
                            , Frbyte_Packet *p_st_data
                            , char *p_key);
int tonglinkq_get_map_char(Frreport_body_data *p_st_body_data
                         , Frbyte_Packet *p_st_data
                         , char *p_key);
int tonglinkq_get_map_short(Frreport_body_data *p_st_body_data
                          , Frbyte_Packet *p_st_data
                          , char *p_key);
int tonglinkq_get_map_int(Frreport_body_data *p_st_body_data
                        , Frbyte_Packet *p_st_data
                        , char *p_key);
int tonglinkq_get_map_long(Frreport_body_data *p_st_body_data
                         , Frbyte_Packet *p_st_data
                         , char *p_key);
int tonglinkq_get_map_float(Frreport_body_data *p_st_body_data
                          , Frbyte_Packet *p_st_data
                          , char *p_key);
int tonglinkq_get_map_double(Frreport_body_data *p_st_body_data
                           , Frbyte_Packet *p_st_data
                           , char *p_key);
int tonglinkq_get_map_byte(Frreport_body_data *p_st_body_data
                         , Frbyte_Packet *p_st_data
                         , char *p_key);
#endif
